Platform Explorer / Nuxeo Platform 2021.26

Contribution org.nuxeo.search.ui.urlservice--urlpatterns

This contribution is part of XML component org.nuxeo.search.ui.urlservice inside nuxeo-search-ui-2021.26.5.jar /OSGI-INF/search-url-service-contrib.xml

Extension Point

Extension point urlpatterns of component URLService.

Registration Order

6
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <urlPattern enabled="true" name="search">
          <defaultURLPolicy>false</defaultURLPolicy>
          <needBaseURL>true</needBaseURL>
          <needRedirectFilter>true</needRedirectFilter>
          <needFilterPreprocessing>true</needFilterPreprocessing>
          <codecName>docpathsearch</codecName>
          <actionBinding>
            #{searchUIActions.loadPermanentLink}
          </actionBinding>
          <documentViewBindingApplies>
            #{mainTabsActions.isOnMainTab('search')}
          </documentViewBindingApplies>
          <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
          <newDocumentViewBinding>
            #{restHelper.getNewDocumentView(null)}
          </newDocumentViewBinding>
          <bindings>
            <binding name="tabIds">#{searchUIActions.searchMainTab}</binding>
            <binding callGetter="false" name="language">
              #{restHelper.localeString}
            </binding>
            <binding callGetter="true" name="contentViewName">
              #{searchUIActions.currentContentViewName}
            </binding>
            <binding callGetter="true" name="currentPage">
              #{searchUIActions.currentPage}
            </binding>
            <binding callGetter="true" name="pageSize">
              #{searchUIActions.pageSize}
            </binding>
            <binding callGetter="false" name="state">
              #{searchUIActions.state}
            </binding>
            <binding callGetter="false" name="searchTerm">
              #{searchUIActions.searchTerm}
            </binding>
          </bindings>
        </urlPattern>

XML Source

<extension point="urlpatterns" target="org.nuxeo.ecm.platform.ui.web.rest.URLService">

    <urlPattern enabled="true" name="search">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>docpathsearch</codecName>
      <actionBinding>
        #{searchUIActions.loadPermanentLink}
      </actionBinding>
      <documentViewBindingApplies>
        #{mainTabsActions.isOnMainTab('search')}
      </documentViewBindingApplies>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      <newDocumentViewBinding>
        #{restHelper.getNewDocumentView(null)}
      </newDocumentViewBinding>
      <bindings>
        <binding name="tabIds">#{searchUIActions.searchMainTab}</binding>
        <binding callGetter="false" name="language">
          #{restHelper.localeString}
        </binding>
        <binding callGetter="true" name="contentViewName">
          #{searchUIActions.currentContentViewName}
        </binding>
        <binding callGetter="true" name="currentPage">
          #{searchUIActions.currentPage}
        </binding>
        <binding callGetter="true" name="pageSize">
          #{searchUIActions.pageSize}
        </binding>
        <binding callGetter="false" name="state">
          #{searchUIActions.state}
        </binding>
        <binding callGetter="false" name="searchTerm">
          #{searchUIActions.searchTerm}
        </binding>
      </bindings>
    </urlPattern>

  </extension>